/* Copyright (c) 2004-2024 peigen.info. All rights reserved. */

package info.peigen.hotpot.component.data.repository.wood.entity;

import com.alibaba.fastjson2.annotation.JSONField;
import info.peigen.hotpot.component.data.repository.NoCreateTimeEntityable;
import lombok.AccessLevel;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.FieldDefaults;
import org.noear.wood.annotation.Column;
import org.noear.wood.annotation.PrimaryKey;

/**
 * <b>(AbstractNoCreateTimeEntity)</b>
 *
 * @author Peigen
 * @version 1.0.0
 * @since 2022/4/25
 */
@SuppressWarnings("unused")
@Getter
@Setter
@FieldDefaults(level = AccessLevel.PRIVATE)
public abstract class AbstractNoCreateTimeEntity implements NoCreateTimeEntityable {
    /** 数据库自增主键，用于日后数据迁移定位更精确 */
    @SuppressWarnings("DefaultAnnotationParam")
    @JSONField(ordinal = 0)
    @Column(value = "id")
    @PrimaryKey
    Integer id;
}